﻿//-------------------------------------------------------------------------------------
// All Rights Reserved , Copyright (C) 2011 , Hairihan TECH, Ltd. 
//-------------------------------------------------------------------------------------

using System;
using System.IO;
using System.Windows.Forms;

namespace DotNet.WinForm.CodeGenerator
{
    using DotNet.Utilities;

    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            // 多语言国际化加载
            ResourceManagerWrapper.Instance.LoadResources(Path.Combine(Application.StartupPath, "Resource/Localization/"));
            // 从当前指定的语言包读取信息
            AppMessage.GetLanguageResource();

            // 读取配置文件
            BaseSystemInfo.ConfigurationFrom = ConfigurationCategory.UserConfig;
            ConfigHelper.GetConfig();

            Application.Run(new FrmCodeGenerator());
        }
    }
}